<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
<title>Might Vs Magic</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<script language="JavaScript" src="./js/jquery.js"></script>

<!--[if lte IE 7]>
<style>
.container {
    position: relative;
}

.container .blockOuter {
    position: absolute;
    top:50%;
}

.container .blockInner {
    position: relative;
    top: -50%;
}
</style>
<![endif]-->
<style>
#menu {
	position: relative;
	top: 20%
}
</style>
<sx:head />
</head>

<body>
<center><img src="./img/logo.jpg" width="80%"></center>
<center>
<s:if test="!''.equals(@pl.un4giv3n.mightvsmagic.admin.action.AnnouncementBanner@getAnnouncement())">
<div class="container">
	<div class="blockOuter">
	<center>
		<div class="info" id="info">
		</div>
	</center>
	</div>
</div>
</s:if>
<div class="container">
	<div class="blockOuter">
	<center>
		<div class="blockInner">
			<a href="<s:url action='mainPage.action'/>">Status</a> | 
			<a href="<s:url action='trainPage.action'/>">Trening</a> | 
			<a href="<s:url action='workPage.action'/>">Praca</a> | 
			<a href="<s:url action='developPage.action'/>">Rozwój</a> | 
			<a href="<s:url action='bazarPage.action'/>">Bazar</a> | 
			<a href="<s:url action='showClanPage.action'/>">Klan</a> | 
			<a href="<s:url action='showFights.action'/>">Walka<s:if test="unreadDefensesCount > 0">(<s:property value="unreadDefensesCount"/>)</s:if></a><br/>
			<a href="<s:url action='rankingPage.action'/>">Ranking</a> | 
			<a href="http://forum-mightvsmagic.pl" target="_blank">Forum</a> |  
			<a href="<s:url action='profilePage.action'/>">Profil</a> |  
			<a href="<s:url action='premiumPage.action'/>">Premium</a> |  
			<a href="<s:url action='composeMessagePage.action'/>">Wiadomości<s:if test="unreadMessagesCount > 0">(<s:property value="unreadMessagesCount"/>)</s:if></a> |  
			<a href="<s:url action='introductionPage.action'/>">Instrukcja</a> |  
			<a href="<s:url action='logout.action'/>">Wyloguj</a>
		</div>
	</center>
	</div>
</div>
<!-- 
<center>
	<div class="menu"><a href="<s:url action='mainPage.action'/>"><img src="./img/buttons/menusstatus.png" alt="Status" title="Status"/></a>
	<a href="<s:url action='trainPage.action'/>"><img src="./img/buttons/menustrening.png" alt="Trening" title="Trening"/></a>
		<a href="<s:url action='workPage.action'/>"><img src="./img/buttons/menuspraca.png" alt="Praca" title="Praca"/></a>
		<a href="<s:url action='developPage.action'/>"><img src="./img/buttons/menusrozwoj.png" alt="Rozwój" title="Rozwój"/></a>
		<a href="<s:url action='bazarPage.action'/>"><img src="./img/buttons/menusbazar.png" alt="Bazar" title="Bazar"/></a>
		<a href="<s:url action='showFights.action'/>"><img src="./img/buttons/menusraporty.png" alt="Raporty" title="Raporty"/></a> <br/>
		<a href="<s:url action='rankingPage.action'/>"><img src="./img/buttons/menusranking.png" alt="Ranking" title="Ranking"/></a>
		<a href="http://forum-mightvsmagic.pl" target="_blank"><img src="./img/buttons/menusdyskusje.png" alt="Dyskusje" title="Dyskusje"/></a> 
		<a href="<s:url action='profilePage.action'/>"><img src="./img/buttons/menusprofil.png" alt="Profil" title="Profil"/></a> 
		<a href="<s:url action='premiumPage.action'/>"><img src="./img/buttons/menuspremium.png" alt="Premium" title="Premium"/></a> 
		<a href="<s:url action='composeMessagePage.action'/>"><img src="./img/buttons/menusmessages.png" alt="Wiadomości" title="Wiadomości"/></a> 
		<a href="<s:url action='introductionPage.action'/>"><img src="./img/buttons/menusinstrukcja.png" alt="Instrukcja" title="Instrukcja"/></a> 
		<a href="<s:url action='logout.action'/>"><img src="./img/buttons/menuswyloguj.png" alt="Wyloguj" title="Wyloguj"/></a>
	</div>
</center>
 -->
</center> 
<center>
<div class="error"><s:actionerror /></div>
<div class="message"><s:actionmessage /></div>
<tiles:insertAttribute name="body" />
</center>
<SCRIPT type="text/javascript">
var banner = '<s:property value="@pl.un4giv3n.mightvsmagic.admin.action.AnnouncementBanner@getAnnouncement()"/>';
banner = banner.replace(/\&lt;/g,'<').replace(/\&gt;/g,'>');
if(banner != ""){
	$("#info").html(banner);
}
</SCRIPT>
</body>
</html>
